/**
 * 简单巴什博奕
 */
#include <iostream>
using namespace std;
int main()
{
    int n,m;
    while(cin>>n>>m)
        if(n%(m+1)==0)  cout<<"后手必胜"<<endl;
        else cout<<"先手必胜"<<endl;
    return 0;
}
